import { Component, Input, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { InformationService } from 'src/app/service/information.service';

@Component({
  selector: 'app-scroll-info',
  templateUrl: './scroll-info.component.html',
  styleUrls: ['./scroll-info.component.scss']
})
export class ScrollInfoComponent implements OnInit {

  constructor(
    private information: InformationService,
    private router: Router
  ) { }

  @Input()scrollInfoData: any = []

  ngOnInit(): void {
  }

  goDetail(item: any){
    this.router.navigate(['/information/detail'], { queryParams: { id: item.id } })
  }

}
